import Specification;

import java.util.Vector;


public class Enum {

		public String id,type,name;
		public Vector<Specification> param;
		
		public Enum(){
			param =new Vector<Specification>();

		}
		
		public String getName(){
			return this.name;
		}
		
		
		public void setName(String nom){
			this.name = nom;
		}
		
		public String getId(){
			return this.id;
		}
		
		
		public void setId(String id){
			this.id = id;
		}
		
		public String getType(){
			return this.type;
		}
		
		public void add(Specification p){
			this.param.add(p);
		}
		
		public void setType(String type){
			this.type = type;
		}
		
		
		public Vector<Specification> getParam(){
			return this.param;
		}
		
		public void setParam(Vector<Specification> param){
			this.param = param;
		}
		
		
		public String print(){
			String s=""; 
			s = "Nom : " + this.name +"\nId : " + this.id+"\nType : " + this.type+ "\nSpecification  : ";
			Specification pr;
			for (int i=0; i<this.param.size(); i++){
				pr = (Specification) this.param.get(i);
				s = s + pr.print()+ "  ";
			}
			s = s+"\n";
			
			return s;
		}
	
}
